package com.settlement.system.service.impl;

import com.settlement.system.mapper.TblOrderSourceInfoMapper;
import com.settlement.system.common.exception.ServiceException;
import com.settlement.system.model.entity.common.TblOrderSourceInfo;
import com.settlement.system.service.ITblOrderSourceInfoService;
import org.springframework.stereotype.Service;
import com.settlement.system.mapper.BaseMapper;
import jakarta.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * 订单来源信息表 服务实现类
 * @author xiaochuang
 * @since 2020-06-17
 */
@Service
public class TblOrderSourceInfoServiceImpl extends BaseServiceImpl implements ITblOrderSourceInfoService {

    @Resource
    private TblOrderSourceInfoMapper tblOrderSourceInfoMapper;

    @Override
    public BaseMapper init() {
        return tblOrderSourceInfoMapper;
    }

    @Override
    public List<TblOrderSourceInfo> getAllSource(Map<String, Object> params) throws ServiceException {
        try {
            return tblOrderSourceInfoMapper.getAllSource(params);
        } catch (Exception e) {
            throw  new ServiceException(e);
        }
    }
}

